{extend name="$member_style_layout" /}

{block name="title"}客户购买的商品{/block}
{block name="content"}
{php}$type||$type=0; $house[$type]="class='red'";{/php}
<ul class="qb_ui_page_menu">
	<li><a href="{:urls('index')}" {$house[0]}>全部</a></li>	
	<li><a href="{:urls('index','type=ispay')}" {$house['ispay']}>已付款</a></li>
	<li><a href="{:urls('index','type=nopay')}" {$house['nopay']}>未付款</a></li>
</ul>
<link rel="stylesheet" href="__STATIC__/css/waporder.css">
{volist name="listdb" id="rs"}
<div class="ListOrder">
	<ul class="topinfo">
		<ol><a href="{:get_url('user',['uid'=>$rs['uid']])}"><img src="{$rs.shop_uid|get_user_icon}" onerror="this.src='__STATIC__/images/nopic.png';"/><span>{$rs.shop_uid|get_user_name}</span></a></ol>
		<li><i class="fa fa-clock-o"></i>{$rs.create_time}</li>		
	</ul>
	{volist name="rs.shop_db" id="vs"}
	<ul class="listshop">
		<li class="img"><a href="{:iurl('content/show',['id'=>$vs['id']])}"><img src="{$vs.picurl}" onerror="this.src='__STATIC__/images/nopic.png';"/></a></li>
		<li class="infos">
			<div><a href="{:iurl('content/show',['id'=>$vs['id']])}">{$vs.title}</a></div>
			<p>
				{notempty name="$vs._type1"}{$vs._type1} &nbsp; {/notempty}
				{notempty name="$vs._type2"}{$vs._type2} &nbsp; {/notempty}
				{notempty name="$vs._type3"}{$vs._type3}{/notempty}
			</p>
		</li>
		<li class="price"><div>&yen; {$vs._price}</div><p>X {$vs._num}</p></li>
	</ul>
	{/volist}
	<ul class="otherinfo">
		<ol>应付金额:<span>&yen;{$rs.pay_money}</span>元</ol>
		 
		<li>订单号:{$rs.order_sn}</li>
	</ul>
	<div class="actions">
		{eq name="$rs.pay_status" value="1"}<span>已付款</span>{else /}
		<span>未付款</span>
		{/eq}
		
		<a href="{:urls('show',['id'=>$rs['id']])}">查看</a> 
		<a href="{:urls('edit',['id'=>$rs['id']])}">修改</a> 			
		<!--<a href="{:urls('delete',['id'=>$rs['id']])}" class="del">删除</a>-->
	</div>
</div>
{/volist}
{$pages}
{/block}